package com.hzgj.bcl.soa.rpc.message;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.lang.reflect.Method;

import lombok.Getter;
import lombok.Setter;

public class MethodCall implements Serializable, Payload {

    protected static final Logger log = LoggerFactory.getLogger(MethodCall.class);
    private static final long serialVersionUID = 7873471327078957662L;
    @Getter
    @Setter
    private String service;
    @Getter
    private String method;
    @Getter
    private Object[] args;
    @Setter
    @Getter
    private String clientName;
    @Setter
    @Getter
    private String contextId;
    @Getter
    @Setter
    private String bizId;


    public MethodCall(String mName, Object... args) {
        this.method = mName;
        this.args = args;
    }

    @Override
    public Object[] getArgs(Class<?>[] types) {
        return args;
    }
}